package com.letfox.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.user.dao.GroupDao;
import com.letfox.user.model.UGroup;
import com.letfox.user.service.GroupService;

@Service
public class GroupServiceImpl implements GroupService {

	@Autowired
	private GroupDao groupDao;
	
	@Override
	public int save(UGroup group) {
		return groupDao.insert(group);
	}

	@Override
	public int update(UGroup group) {
		return groupDao.update(group);
	}

	@Override
	public int deleteById(Long id) {
		return groupDao.deleteById(id);
	}

	@Override
	public int deleteByIds(String ids) {
		return groupDao.deleteByIds(ids);
	}

	@Override
	public UGroup getById(Long id) {
		return groupDao.selectById(id);
	}

	@Override
	public List<UGroup> getList(UGroup group) {
		return groupDao.selectList(group);
	}

}
